/**
 * 
 */
package org.shark.jdbcTemplateTool.dao.config;

import java.io.Serializable;
import java.lang.reflect.Method;

@SuppressWarnings("serial")
public class SqlCommand implements Serializable {
	
	public static final String[] UPDATE = new String[] {"update", "modify"};
	
	public static final String[] DELETE = new String[] {"delete", "del", "remove"};
	
	public static final String[] INSERT = new String[] {"insert", "add", "create"};
	
	private String key;
	
	private Method method;

	private String methodName;
	
	private Class<?> returnClass;

	private boolean isSuperMethod = false;

	private Class<?> entityClass;
	
	private boolean add = false;
	
	private boolean update = false;
	
	private boolean delete = false;
	
	private boolean list = false;
	
	private boolean array = false;
	
	private boolean map = false;

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public Method getMethod() {
		return method;
	}

	public void setMethod(Method method) {
		this.method = method;
	}

	public boolean isAdd() {
		return add;
	}

	public void setAdd(boolean add) {
		this.add = add;
	}

	public boolean isUpdate() {
		return update;
	}

	public void setUpdate(boolean update) {
		this.update = update;
	}

	public boolean isDelete() {
		return delete;
	}

	public void setDelete(boolean delete) {
		this.delete = delete;
	}

	public boolean isList() {
		return list;
	}

	public void setList(boolean list) {
		this.list = list;
	}

	public boolean isArray() {
		return array;
	}

	public void setArray(boolean array) {
		this.array = array;
	}

	public boolean isMap() {
		return map;
	}

	public void setMap(boolean map) {
		this.map = map;
	}

	public Class<?> getReturnClass() {
		return returnClass;
	}

	public void setReturnClass(Class<?> returnClass) {
		this.returnClass = returnClass;
	}

	public boolean isSuperMethod() {
		return isSuperMethod;
	}

	public void setSuperMethod(boolean superMethod) {
		isSuperMethod = superMethod;
	}

	public Class<?> getEntityClass() {
		return entityClass;
	}

	public void setEntityClass(Class<?> entityClass) {
		this.entityClass = entityClass;
	}

	public String getMethodName() {
		return methodName;
	}

	public void setMethodName(String methodName) {
		this.methodName = methodName;
	}
}
